/*
 * Copyright [2008]. Sherwin zhu. sherwinzhu@126.com
 *
 * http://www.gnu.org/licenses/lgpl-3.0.txt
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */
using System;
using System.Web.UI.WebControls;

namespace TB.Web.UI.WebControls
{
    public class TreeGridRowCommandEventArgs : CommandEventArgs
    {
        public TreeGridRowCommandEventArgs(object commandSource, CommandEventArgs originalArgs) : base(originalArgs)
        {
            this._commandSource = commandSource;
        }

        public TreeGridRowCommandEventArgs(TreeGridRow row, object commandSource, CommandEventArgs originalArgs) : base(originalArgs)
        {
            this._row = row;
            this._commandSource = commandSource;
        }


        public object CommandSource
        {
            get
            {
                return this._commandSource;
            }
        }

        public TreeGridRow Row
        {
            get
            {
                return this._row;
            }
        }


        private object _commandSource;
        private TreeGridRow _row;
    }
}
